package tmproject.hlhj.fhp.cartrans.utils

import android.graphics.Bitmap
import android.view.View


/**
 * Created by Never Fear   on 2018\8\28 0028.
Never More....
 */
object CutUtils {
    fun loadBitmapFromViewBySystem(v: View?): Bitmap? {
        if (v == null) {
            return null
        }
        v!!.setDrawingCacheEnabled(true)
        v!!.buildDrawingCache()
        return v!!.getDrawingCache()
    }
}